(setq which-key-idle-delay 1.0)
;; Set the maximum length (in characters) for key descriptions (commands or
- ;; prefixes). Descriptions that are longer are truncated and have ".." added
+ ;; prefixes). Descriptions that are longer are truncated and have ".." added.
(setq which-key-max-description-length 27)
+ ;; Use additonal padding between columns of keys. This variable specifies the
+ ;; number of spaces to add to the left of each column.
+ (setq which-key-add-column-padding 0)
+
;; Set the separator used between keys and descriptions. Change this setting to
;; an ASCII character if your font does not show the default arrow. The second
;; setting here allows for extra padding for Unicode characters. which-key uses
:group 'which-key
:type 'integer)
+(defcustom which-key-add-column-padding 0
+ "Additional padding (number of spaces) to add to the left of
+each key column."
+ :group 'which-key
+ :type 'integer)
+
(defcustom which-key-separator " → "
"Separator to use between key and description."
:group 'which-key
"Take a column of (key separator description) COL-KEYS,
calculate the max width in the column and pad all cells out to
that width."
- (let* ((col-key-width (which-key--max-len col-keys 0))
+ (let* ((col-key-width (+ which-key-add-column-padding
+ (which-key--max-len col-keys 0)))
(col-sep-width (which-key--max-len col-keys 1))
(col-desc-width (which-key--max-len col-keys 2))
(col-width (+ 1 col-key-width col-sep-width col-desc-width)))